package com.metro.generator.gen.util;

import com.metro.core.vo.LabelValue;
import com.metro.activation.common.beans.constant.DicTypeEnum;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by xk on 2018/1/22 0022.
 */
public class GenDicTypeHelper {

    /**
     * 获取所有的字典表类型，先简单粗暴的处理
     * @return
     */
    public static List<LabelValue> getAllDictionaryType(){
        List<LabelValue> list = new ArrayList<>();

        for(DicTypeEnum type : DicTypeEnum.values()){
            list.add(new LabelValue(type.getType(), type.getType()));
        }

        return list;
    }
}
